package com.padbot.qm.security;

public final class UserSessionTokenFactory {

	public UserSessionTokenFactory() {
	}
	
	public static UserSessionBean createToken(String userId, String userName, String nickName){
		UserSessionToken token = new UserSessionToken();
		UserSessionBean sessionBean = new UserSessionBean();
		sessionBean.setToken(token);
		sessionBean.setUserId(userId);
		sessionBean.setUserName(userName);
		sessionBean.setNickName(nickName);
		sessionBean.createTokenKey();
		return sessionBean;
	}

}
